package com.onec.service.customer.dao.agent;

import com.onec.service.api.dao.BaseRepository;
import com.onec.service.customer.entity.agent.AgentBusiness;
import org.springframework.data.repository.RepositoryDefinition;

/**
 * @author ONEC
 */
@RepositoryDefinition(domainClass = AgentBusiness.class, idClass = Long.class)
public interface AgentBusinessRepository extends BaseRepository<AgentBusiness, Long> {

    /**
     * 机构业务
     *
     * @param agentId
     * @param businessNo
     * @return
     */
    AgentBusiness findByAgentIdAndBusinessNo(long agentId, String businessNo);
}
